gridpack::component::BaseComponent Class Reference
#include <base_component.hpp>
List of all members.
Constructor & Destructor Documentation
gridpack::component::BaseComponent::BaseComponent |
( |
void |
|
) |
|
virtual gridpack::component::BaseComponent::~BaseComponent |
( |
void |
|
) |
[virtual] |
Member Function Documentation
virtual bool gridpack::component::BaseComponent::getDataItem |
( |
void * |
data, |
|
|
const char * |
signal = NULL | |
|
) |
| | [virtual] |
Retrieve an opaque data item from component. Different items may be returned based on the value of signal.
- Parameters:
-
| data | item to retrieve from component |
| signal | string to control behavior of routine (e.g. what data item to return) |
- Returns:
- true if component is returning data element, false otherwise
int gridpack::component::BaseComponent::getRank |
( |
void |
|
) |
const |
virtual void gridpack::component::BaseComponent::getXCBuf |
( |
void ** |
bus |
) |
[virtual] |
Return the location of the data exchange buffer
- Parameters:
-
| buf | void pointer to exchange buffer |
virtual int gridpack::component::BaseComponent::getXCBufSize |
( |
void |
|
) |
[virtual] |
Return the size of the buffer needed for data exchanges. Note that this must be the same size for all bus and all branch objects (branch buffers do not need to be the same size as bus buffers), even if all objects do not require the same parameters. Thus, the buffer must be big enough to exchange all variables that an object might need, even if individual objects don't need all the variables
- Returns:
- size of buffer
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
Load data from DataCollection object into corresponding component. This needs to be implemented by every component
- Parameters:
-
| data | data collection associated with component |
Reimplemented in gridpack::ucCommitment::UCBus, gridpack::ucCommitment::UCBus, gridpack::unit_commitment::UCBus, gridpack::unit_commitment::UCBranch, gridpack::unit_commitment::UCBus, gridpack::unit_commitment::UCBranch, gridpack::ymatrix::YMBus, gridpack::ymatrix::YMBranch, gridpack::powerflow::PFBus, gridpack::powerflow::PFBranch, gridpack::state_estimation::SEBus, and gridpack::state_estimation::SEBranch.
virtual bool gridpack::component::BaseComponent::serialWrite |
( |
char * |
string, |
|
|
const int |
bufsize, |
|
|
const char * |
signal = NULL | |
|
) |
| | [virtual] |
virtual void gridpack::component::BaseComponent::setMode |
( |
int |
mode |
) |
[virtual] |
void gridpack::component::BaseComponent::setRank |
( |
int |
rank |
) |
|
virtual void gridpack::component::BaseComponent::setXCBuf |
( |
void * |
buf |
) |
[virtual] |
The documentation for this class was generated from the following file: